﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="Framework.Search" %>

<%@ Register Src="Controls/PagingControl.ascx" TagName="PagingControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#main').addClass('page-content');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section id="main-content">
        <!-- end recent-works -->
        <div class="row-fluid">
            <div class="form-group">
                <asp:TextBox ID="txtSearchAdvanced" runat="server" CssClass="float-left form-control"
                    placeholder="Nhập từ khoá" Style="margin-bottom: 0px;"></asp:TextBox>
                <asp:Button ID="btnSearchAdvanced" runat="server" CssClass="float-left btn btn-default"
                    OnClick="btnSearchAdvanced_Click" Text="Tìm kiếm" />
            </div>
            <h3>
                <a class="actived" href="javascript:void(0)">
                    <%= DGSFramework.Globals.GetLanguage("Tìm kiếm bài viết", "Search articles", true)%></a>
                | <a id="aProduct" runat="server">
                    <%= DGSFramework.Globals.GetLanguage("Tìm kiếm sản phẩm", "Search products", true)%></a></h3>
            <asp:Repeater ID="rpArticle" runat="server">
                <ItemTemplate>
                    <div class="member">
                        <div class="photo">
                            <a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>"
                                title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%>">
                                <img src="<%# DGSFramework.ConfigPaths.Path_ImageArticle_Folder.Substring(1) + Eval("ImageUrl")%>"
                                    alt="<%# !string.IsNullOrEmpty(Eval("ImageAlt").ToString()) ? Eval("ImageAlt").ToString() : Eval("Title").ToString() %>">
                            </a>
                        </div>
                        <div class="content">
                            <h4>
                                <a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>"
                                    title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%>">
                                    <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%></a></h4>
                            <span class="position georgia">
                                <%= DGSFramework.Globals.GetLanguage("Ngày đăng", "Publish date", true) %>:
                                <%# string.Format("{0:dd/MM/yyyy}", Eval("AddedDate")) %>.
                                <%= DGSFramework.Globals.GetLanguage("Bình luận", "Comment", true) %>:
                                <fb:comments-count href="<%# DGSFramework.ConfigPaths.Domain_Url + ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>">
                            </fb:comments-count>
                            </span>
                            <p>
                                <%# DGSFramework.Globals.TruncateString(DGSFramework.Globals.GetLanguage(Eval("Abstract"), Eval("Abstract_en"), true), 200)%></p>
                        </div>
                        <!-- end content -->
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear">
            </div>
            <div class="navigation nav-portfolio rights portfolio-pag" id="postsNav">
                <div class="pagination_links">
                    <div class="visible-desktop visible-tablet">
                        <div class="numbers-pag">
                            <uc1:PagingControl ID="PagingControl1" runat="server" />
                        </div>
                    </div>
                </div>
                <!-- end pagination_links -->
            </div>
            <div class="clear">
            </div>
        </div>
    </section>
</asp:Content>
